<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>

  <script src="jquery-3.7.1.min.js"></script>
  <!--  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>-->

</head>
<body>


<form action="">


  <!--  <input type="checkbox" checked> <br>

    <input type="radio" checked><br>

    <input type="text" disabled><br>

   <input type="text"><br>-->


  <input type="checkbox" name="hobby" value="reading" checked> 阅读
  <input type="checkbox" disabled name="hobby" value="sports"> 运动


  <select>

    <option value="1">选项1</option>

    <option value="2" selected>选项2</option>

  </select>

</form>

<script>

  // alert($("input:disabled").val());
  alert($("input:enabled").val());
  // alert($("option:selected").text());

  // $("input:checked").val('阅读');
  // alert(val);
</script>
</body>
</html>
